
from PyQt4 import QtCore, QtGui
from threading import Thread
import time

class Processor:
	""" creates dialog according to 'template' class
	"""
	def __init__(self):
		pass
	
	def compile(self, object, description):
		""" returns QT window that is set up.
			later put returned window in save_changes
		"""
		

	def save_changes(self, object, dialog):
		""" save changes from dialog in object
		"""
		

app = QtGui.QApplication([])
#app.setQuitOnLastWindowClosed(False)

if __name__ == '__main__':
	## test for condition dialog :
	from dialogs.condition_dialog import Condition as ConditionDialog
	from condition import Condition
	c = Condition('pos_x', '<', 'float', 3.14)
	dialog = ConditionDialog(c)
	print 'pocetak %s' % (c, )
	app.exec_()
	print 'kraj %s' % (c, )
	